package com.anjubao.parking.municipal.payment.model;

import com.anjubao.parking.municipal.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;

/**
 * 支付请求记录
 *
 * @author zhuchunfeng
 */
@Getter
@Setter
@TableName("parking_trade_pay_request")
@ApiModel(value="ParkingTradePayRequest",description = "支付请求记录")
public class ParkingTradePayRequest{

    @TableId(type = IdType.INPUT)
    @TableField(value="id")
    @ApiModelProperty(name="id",value = "请求id")
    private Long id;

    @TableField(value="parking_lot_id")
    @ApiModelProperty(name="parkingLotId",value = "停车场ID")
    private Long parkingLotId;

    @TableField(value="parking_lot_code")
    @ApiModelProperty(name="parkingLotCode",value = "停车场编号,code生成规则为100(3位)+yyMMddHHmm(10位)+id(19位)")
    private String parkingLotCode;

    @TableField(value="parking_lot_name")
    @ApiModelProperty(name="parkingLotName",value = "停车场名称")
    private String parkingLotName;

    @TableField(value="out_trade_id")
    @ApiModelProperty(name="outTradeId",value = "交易订单ID ")
    private Long outTradeId;

    @TableField(value="pay_channel_id")
    @ApiModelProperty(name="payChannelId",value = "渠道ID -- 1：微信 2:支付宝 3:银联 4:现金 99:其他")
    private Integer payChannelId;

    @TableField(value="params")
    @ApiModelProperty(name="params",value = "请求参数")
    private String params;

    @TableField(value="charge_request")
    @ApiModelProperty(name="chargeRequest",value = "支付请求")
    private String chargeRequest;

    @TableField(value = "create_time")
    private LocalDateTime createTime;


}